﻿using System;

namespace nanoCMS.Store {
	public static class SessionManager
	{
		public static int CurrentOfferID {
			get {
				var sessionData = System.Web.HttpContext.Current.Session["CurrentOfferID"];
				return sessionData != null ? Convert.ToInt32((object) sessionData) : -1;
			}
			set { System.Web.HttpContext.Current.Session["CurrentOfferID"] = value; }
		}
	}
}
